package com.qlyl.modules.information.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.util.Date;

@Setter
@Getter
@ToString
@ApiModel(value = "banner具体细节", description = "包含banner展示的所有细节")
public class BannerVo {

    @NotBlank(message = "banner图片不能为空")
    @ApiModelProperty(value = "banner 展示的图片", required = true)
    private String bannerImg;

    @NotBlank(message = "banner跳转的地址不能为空")
    @ApiModelProperty(value = "banner 跳转的地址", required = true)
    private String bannerAddr;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "banner 发布的时间")
    private Date publishDate;
}
